<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mymsgro</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/meniu.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />

</head>
<h:body>

	<ui:include src="header.xhtml" />

	<h:panelGroup layout="block" id="content">

		<ui:include src="leftMenu.xhtml" />

		<h:panelGroup layout="block" id="contenRight">
<f:event type="preRenderView" listener="#{candidateBean.preRenderView}"/>
			<h:panelGroup layout="block" id="header" style="margin-top: 20px;">
				<ul>
					<li id="selected"><a>Send email to candidate</a></li>
				</ul>
			</h:panelGroup>

			<h:panelGroup layout="block" id="contentTab">

				<h:form>

					<h:commandButton style="width:50px; height:30px;"
						image="resources/img/back-button.png"
						action="#{interviewBean.goBack}" immediate="true"></h:commandButton>



					<h:panelGrid columns="2">

						<h:outputText value="Sender:  " style="font-weight: bold" />
						<h:outputText value="#{interviewBean.sender}" />

						<h:outputText value="Receiver:  " style="font-weight: bold"/>
						<h:outputText value="#{interviewBean.receiver}" />

						<h:outputText value="Subject:  " style="font-weight: bold"/>
						<h:inputText value="#{interviewBean.subject}" style="width: 97.7%;" />

						<h:outputText value="Content:  " style="font-weight: bold" />
						<h:inputTextarea value="#{interviewBean.content}" cols="30"
							rows="10" />

						<h:commandButton value="Send" action="#{interviewBean.sendMail}" style="float:right;cursor: pointer;

                                                        align-content: center;

                                                        align-self: center;

                                                        border-radius: 4px;

                                                        margin-bottom: 15px;" />


						<h:outputText value="#{interviewBean.errorMessageSend}"
							style="color:red" />
					</h:panelGrid>
				</h:form>
			</h:panelGroup>
		</h:panelGroup>
	</h:panelGroup>
</h:body>


</html>